﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ArmyBuilder_Modele
{
    public class Tool
    {
        public static List<TDest> ConvertList<TSrc,TDest>(List<TSrc> listSrc) where TDest : TSrc
        {
            return listSrc.ConvertAll<TDest>(delegate(TSrc item) { return (TDest)item; });
        }
    }
}
